package com.tuo.beans;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * Created by tuo on 2016/1/9.
 *
 * @author tuo
 *         中途报停产品
 */
@Entity
public class Stopped {
    private long id;
    /**
     * 详情ID
     */
    private long detailId;
    /**
     * 归还数量
     */
    private int number;
    /**
     * 归还时间
     */
    private String stop;
    /**
     * 归还物品价格
     */
    private BigDecimal price;
    /**
     * 物品租借天数
     */
    private long dayNumber;

    public Stopped() {
    }

    public Stopped(long detailId) {
        this.detailId = detailId;
    }

    @Id
    @GeneratedValue
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getDetailId() {
        return detailId;
    }

    public void setDetailId(long detailId) {
        this.detailId = detailId;
    }

    public long getDayNumber() {
        return dayNumber;
    }

    public void setDayNumber(long dayNumber) {
        this.dayNumber = dayNumber;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getStop() {
        return stop;
    }

    public void setStop(String stop) {
        this.stop = stop;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Stopped{" +
                "id=" + id +
                ", detailId=" + detailId +
                ", number=" + number +
                ", stop='" + stop + '\'' +
                ", price=" + price +
                ", dayNumber=" + dayNumber +
                '}';
    }
}
